package cn.itheima.order.mapper;

import cn.itheima.dubbo.domain.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<cn.itheima.dubbo.domain.Order> {
      @Select("select * from tb_order where user_id = #{id}")
    List<Order> findByUserId(@Param("id") Long id);

}
